const DOMIN="https://api.m.jd.com/";
export function get (body){
    return fetch(`${DOMIN}${body}`).then(response=>response.json())//向
}

export function post(url,data){
    return fetch(DOMIN+url,{
        method:'POST',
        headers:{
            'Content-type':'application/json',
            "Accept":"application/json"
        },
        body:JSON.stringify(data)

    })
}


